package com.zy.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;

@Data
@Table(
        name = "t_staff"
)
public class Staff {
    @Id
    private Integer sfId;
    private String sfName;
    private String sfUser;
    private String sfPassword;
    private String sfSalf;
    private String sfSex;
    private Integer sfAge;
    private String sfCode;
    private String sfTel;
    private String sfAddress;
    @JsonFormat( pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8" )
    private Date sfEntry;
    @JsonFormat( pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8" )
    private Date sfQuit;
    private Integer sfStatus;
    private String sfUrl;
}
